package com.wy.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wy.entity.IpEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IpMapper extends BaseMapper<IpEntity> {
    @Insert("insert INTO t_access_record(id,ip,port,createTime)VALUES(#{ipEntity.id},#{ipEntity.ip},#{ipEntity.port},#{ipEntity.createTime}) ")
    void insertIpPort(@Param("ipEntity") IpEntity ipEntity);
}
